package cn.work100.modular.msn.webSocket;

import cn.work100.core.shiro.ShiroKit;
import cn.work100.modular.system.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;

@Controller
@RequestMapping("/msn")
public class Msn {
    private static String PREFIX = "/modular/msn";

    @Resource
    private UserService userService;

    @RequestMapping("/index")
    public String msn(Model model){
        model.addAttribute("user",userService.getByAccount(ShiroKit.getUser().getAccount()));
        return PREFIX+"/index.html";
    }


}
